package com.z6school.manage.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**用户表*/
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User implements Serializable {
    private static final long serialVersionUID = 1964946467745165954L;
    /**用户ID*/
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**登录名*/
    private String username;
    /**昵称*/
    private String nickname;
    /**密码*/
    private String password;
    /**盐值加密*/
    private String salt;
    /**邮箱*/
    private String email;
    /**手机*/
    private String mobile;
    /**角色*/
    private String role;
    /**用户类型*/
    private String type;
    /**是否启用*/
    private Integer valid=1;
    /**创建时间*/
    private Date createdTime;
    /**修改时间*/
    private Date modifiedTime;
    private String createdUser;
    private String modifiedUser;
}
